Component({
    properties: {
        src: {
            type: String,
            default: ""
        },
        styleStr: {
            type: String,
            value: ""
        },
        model: {
            type: String,
            default: "scaleToFill"
        },
        lazyload: {
            type: Boolean,
            default: !0
        }
    },
    data: {
        loadingState: 0
    },
    methods: {
        _onImageError: function(t) {
            this.setData({
                loadingState: -1
            }), this.triggerEvent("onImageError", t);
        },
        _onImageLoad: function(t) {
            this.setData({
                loadingState: 1
            }), this.triggerEvent("onImageLoad", t);
        }
    }
});